/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package shogi;

import java.awt.EventQueue;
import javax.swing.JFrame;

/**
 *
 * @author novaterata
 */
public class Shogi {
        String open = "lxpxxxPxLnbpxxxPRNsxpxxxPxSgxpxxxPxGkxpxxxPxKgxpxxxPxGsxpxxxPxSnrpxxxPBNlxpxxxPxL000000000000001";
        String dir = "resources/";
        Shogi()
        {
                new Shogi(open, dir);
        }
        Shogi(String opening, String folder)
        {
                ShogiBoard frame = new ShogiBoard(opening, folder);
				Options options = new Options(frame);
				frame.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );
				frame.pack();
				frame.setResizable( false );
				frame.setLocationRelativeTo( null );
				frame.setVisible(true);
        }
	/**
	 * 
	 * @param args
	 */
	public static void main(String[] args)
	{
		Runnable runner = new Runnable(){
			@Override
			public void run(){
				new Shogi();
			}
		};
		EventQueue.invokeLater(runner);
	}
	
}
